package com.itlin.utils;

import com.itlin.bean.Employee;
import org.springframework.stereotype.Component;

/**
 * @author 所谓伊人
 * @date 2022/3/22 - 12:53
 */
@Component
public class  BaseContext {

    ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public void setThreadLocal(Long id) {
        threadLocal.set(id);
    }

    public Long getThreadLocal() {
        return threadLocal.get();
    }

}
